function [psss_time_domain, ssss_time_domain_0, ssss_time_domain_1, sync_grid] =  Function_SL_Sync_Signal_Generation(slMode, NSLRB, NSLID, NFFT, cpLenR, NSLsymb, cp_Len_r12)

	N_pss_cazac = 63;                   % Zadoff-Chu length (actually -1)
	NRBsc = 12;                         % Resource block size in the frequency domain, expressed as a number of subcarriers
    
% 	NSLsymb;                            % Number of SL symbols per slot, depending on CPconf
% 	NFFT;                               % FFT size
% 	cpLen0;                             % CP length for 0th symbol
% 	cpLenR;                             % CP length for remaining symbols
% 	chanSRate;                          % Channel Sampling Rate

% 	psss_symbols;                       % Vector to contain psss_symbols
% 	psss_time_domain;                   % Vector to contain psss in time domain
% 	psss_indices;                       % Indices of the psss into the grid
% 	ssss_symbols_0;                     % Vector to contain ssss_symbols 0
% 	ssss_symbols_1;                     % Vector to contain ssss_symbols 1
% 	ssss_time_domain_0;                 % Vector to contain ssss_symbols_0
% 	ssss_time_domain_1;                 % Vector to contain ssss_symbols_1
% 	ssss_indices_0;                     % Index of the ssss 0 into the grid
% 	ssss_indices_1;                     % Index of the ssss 1 into the grid
% 	sync_grid;                          % Grid of Synchronization subframe
        
% ----------------------------------- PHY INIT -----------------------------------

  
	% ----------------------------------- SYNC INIT-----------------------------------
	% generate sequences
    
    [psss_symbols, psss_time_domain, psss_indices] = Function_Generate_PSS(slMode, NSLRB, NSLID, N_pss_cazac, NRBsc, cpLenR, NFFT, cp_Len_r12);
    [ssss_symbols_0, ssss_symbols_1, ssss_time_domain_0, ssss_time_domain_1, ssss_indices_0, ssss_indices_1] = Function_Generate_SSS(slMode, NSLRB, NSLID, N_pss_cazac, NRBsc, cpLenR, NFFT, cp_Len_r12);
    [sync_grid] = Function_Insert_Sync_to_Grid(NSLRB, NRBsc, NSLsymb, psss_symbols, ssss_symbols_0, ssss_symbols_1, psss_indices, ssss_indices_0, ssss_indices_1);

end % SL_Sync